<!DOCTYPE html PUBLIC 
    "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
<html 
	xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:ui="http://java.sun.com/jsf/facelets" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk"> 

	<ui:component>
		<table class="results" id="templateTable">
			<thead>
				<tr>
				    <!-- Table header -->
					<th colspan="2"><h:outputText value="#{msgs['template.content.title']}" /></th>
				</tr>								
				<tr>
				    <!-- Example of conditional rendering -->
					<h:panelGroup rendered="#{templateBean.visible}">
					   <!-- Column header -->
						<td>
						   <h:outputText value="#{msgs['template.content.c1']}" />
						</td>
						<!-- Column header -->
						<td>
						   <h:outputText value="#{msgs['template.content.c2']}" />
						</td>
					</h:panelGroup>
					<h:panelGroup rendered="#{!templateBean.visible}">					
						<td colspan="2">
						  <h:outputText value="#{msgs['general.notavailable']}" />
						</td>
					</h:panelGroup>
				</tr>
			</thead>
			<!-- Conditional rendering of table body content -->
			<h:panelGroup rendered="#{templateBean.visible}">
			<tbody class="results">
				<tr class="odd">
					<td><h:outputText value="yes"/></td>
					<td><h:outputText value="no" /></td>				
				</tr>
				<tr class="even">
					<td><h:outputText value="true" /></td>
					<td><h:outputText value="false" /></td>				
				</tr>
                <tr class="odd">
                    <td><h:outputText value="bacon"/></td>
                    <td><h:outputText value="eggs" /></td>                
                </tr>
                <tr class="even">
                    <td><h:outputText value="Ben"/></td>
                    <td><h:outputText value="Jerry" /></td>                
                </tr>
			</tbody>
			</h:panelGroup>
		</table>
		<br/>
		<br/>
	</ui:component>
</html>	